#include "stdio.h"

int main() {
	int f(int n);
	int n;
	scanf("%d", &n);
	printf("\n%d!=%d", n, f(n));
}

int f(int n) {
	int i;
	int m;
	if (n == 0 || n == 1) {
		m = 1;
	} else {
		m = f(n - 1) * n;
	}
	printf("%d!=%d\n", n, m);
	return m;
}